<?php


namespace support\command\workerman;

use \support\command\workerman\event\Events;

class BusinessWorker implements Worker
{

    public function register()
    {
        $config = config('gateway.business');
        $register = config('gateway.register');
        $worker                  = new \GatewayWorker\BusinessWorker();
        $worker->name            = $config['name'];
        $worker->count           = $config['count'];
        $worker->registerAddress =  $config['registerAddress'] . ':' . $register['port'];
        $worker->eventHandler    = $config['eventHandler'];
    }
}
